<?php

class GdataModel extends Model{
	
	public $table='gdata';
	
	public function add_data($data=null){
		
		return $this->add($data);
	}
	
	public function get_one_data($where=null){
		
		return $this->where($where)->find();
	}
	
	public function update_data($where,$data=null){
		
		return $this->where($where)->update($data);
	}
	
	public function del_data($where=null){
		return $this->where($where)->delete();
	}
	
}
